package com.demo.bo;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.outstanding.framework.plugin.annotation.NotNullEnum;

public class DemoObject {
	@NotBlank(message = "姓名不能为空")
	private String name;
	@NotNull(message = "age不能为空")
	@Max(value = 150, message = "age属性不合法")
	@Min(value = 0, message = "age属性不合法")
	private Integer age;
	
	@NotNullEnum(message="demoEnum枚举不能为空")
	private DemoEnum demoEnum;
	
	
	

	public DemoEnum getDemoEnum() {
		return demoEnum;
	}

	public void setDemoEnum(DemoEnum demoEnum) {
		this.demoEnum = demoEnum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
}
